
export default {
    //首页对应需要获取state变量的方法
    setHomeGoodTypes(state,nv){
        state.homePage.goodTypes=nv;
    },
    setHomeHotTypes(state,nv){
        state.homePage.hotTypes=nv;
    },
    setHomeShihuiTypes(state,nv){
        state.homePage.shihuiTypes=nv;
    },
    setHomeLikeTypes(state,nv){
        state.homePage.likeTypes=nv;
    },
    //分类页对应需要获取state变量的方法
    setClassTypeLists(state,nv){
        state.classifyPage.typeLists=nv;
    },
    setClassHotTypes(state,nv){
        state.classifyPage.hotTypes=nv;
    },
    setClassLikeTypes(state,nv){
        state.classifyPage.likeTypes=nv;
    },
    //搜索页对应需要获取state变量的方法
    setSearchGoodTypes(state,nv){
        state.searchPage.goodTypes=nv;
    },
    //搜索栏对应需要获取state变量的方法
    setSearchBarSketch(state,nv){
        state.searchBar.sketch=nv;
    },
    setSearchBarHotWord(state,nv){
        state.searchBar.hotWord=nv;
    },
    //详情页对应需要获取state变量的方法
    setDetailPageGoodDetail(state,nv){
        state.detailPage.goodDetail=nv;
    },
    //由详情页加入购物车获取state变量的方法
    setCartPageCartList(state,nv){
        state.cartPage.cartList=nv;
    }
}